package com.liuhaoqi.raletiveblog.service;

import com.github.pagehelper.PageInfo;
import com.liuhaoqi.raletiveblog.entity.Blog;
import com.liuhaoqi.raletiveblog.entity.dto.BlogDto;
import com.liuhaoqi.raletiveblog.result.business.PageResult.AddBlogPageResult;

import java.util.List;

/**
 * @Author liuhaoqi
 * @Date 2020/4/17 11:21
 * @Version 1.0
 */
public interface BlogService {
    int getBlogsnum();
    int updateBlog(Blog blog);
    int deleteBlogByBlogId(Long id);
    List<AddBlogPageResult> getAdminBlogDtoList(int start,int end,int pagesize);
    Long getBlogByCreateTime();
    int updateBlogCommentNumByBLogId(Long id);
    int getBlogViewsById(Long blogId);
    int insertBlog(Blog blog);
    List<BlogDto> getBlogListNoFenYe();
    PageInfo<BlogDto> getBlogListByCategoryname(String categoryName,String pageNum,String pageSize);
    int updateDetailBlogViewsById(Long id);
    PageInfo<BlogDto> getBlogList(String pageNum, String pageSize);

    BlogDto getDetailBlog(Long id);
    Blog getDetailBlogAndConvert(Long id);

    List<BlogDto> getBlogDtoTag();
}
